package com.ailesson.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ailesson.common.reply.PageResult;
import com.ailesson.user.entity.WxpMenuEntity;
import com.ailesson.user.model.req.WxpMenuQueryReq;
import com.ailesson.user.model.req.WxpMenuReq;
import com.ailesson.user.model.reply.WxpMenuReply;

import java.util.List;

/**
 * 公众号菜单
 *
 * @author mac
 * @email mac@gmail.com
 * @date 2024-10-19 22:39:15
 */
public interface WxpMenuService extends IService<WxpMenuEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageResult queryPage(WxpMenuQueryReq params);

    /**
     * 查询信息
     * @param id
     * @return
     */
    WxpMenuReply info(Long id);

    /**
     * 更新信息
     * @param wxpMenu
     */
    void update(WxpMenuReq wxpMenu);

    /**
     * 新增
     * @param wxpMenu
     */
    Long add(WxpMenuReq wxpMenu);

    String  getAccessToken();

    List<WxpMenuReply> queryAll();

    List<WxpMenuReply> queryOneLevel();

    void removeMenu();

    void syncMenu();
}

